<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script>
      //1.检测获取字符串长度 legth
      var str = "my name is xcy";
      console.log(str.length);
      //字符串的拼接只要有字符串，最终结果就是字符串。
      console.log("pink老师" + 18 + "牛逼" + 12 + 12);
      console.log(12 + 12 + 52 + 78);
      var age = 15;
      console.log("pink" + age + "岁");
    </script>
  </head>
  <body></body>
</html>
